package com.example.springbootmq.mqconfig;

import org.apache.activemq.command.ActiveMQQueue;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @ProjectName: mq-demo
 * @Auther: GERRY
 * @Date: 2019/2/25 21:47
 * @Description:
 */
@SpringBootConfiguration
public class ActiveMqConfig {
    @Bean // 创建一个mq的队列对象交给spring管理
    public ActiveMQQueue queue() {
        return new ActiveMQQueue("boot-queue");
    }
}
